import axios from '@/libs/request/axios'

export const getBackReasonList = (params) => {
    return axios.request({
        url: `/case/backReasonAllocation/getBackReasonList`,
        data: params,
        method: 'post'
    })
}

export const getAttachmentNameList = (params) => {
    return axios.request({
        url: `/case/backReasonAllocation/getAttachmentNameList`,
        data: params,
        method: 'post'
    })
}

export const addBackReason = (params) => {
    return axios.request({
        url: `/case/backReasonAllocation/addBackReason`,
        data: params,
        method: 'post'
    })
}

export const editBackReason = (params) => {
    return axios.request({
        url: `/case/backReasonAllocation/editBackReason`,
        data: params,
        method: 'post'
    })
}

export const deleteBackReason = (params) => {
    return axios.request({
        url: `/case/backReasonAllocation/deleteBackReason`,
        data: params,
        method: 'post'
    })
}
